var mongoose = require('mongoose');
var Schema = mongoose.Schema;//定义表模型

var productSchema = new Schema({
   "productId":String,
   "productName":String,
   "salePrice":Number,
   "productImage":String,
   "productNum":Number,
   "checked":Number
});

module.exports = mongoose.model('Good',productSchema,'goods');//输出商品模型